const EMAIL_PATTERN = /^[-\w\+]+(?:\.[-\w]+)*@[-a-z0-9]+(?:\.[a-z0-9]+)*(?:\.[a-z]{2,})$/i;
//邮箱格式校验
export function isEmail(input) {
    return EMAIL_PATTERN.test(input);
}

export default {
    isEmail
}